import 'package:flutter/material.dart';

main() => runApp(MyApp());

// 生成代码快捷键  stl
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: GLHomePage(),
    );
  }
}

class GLHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("基础的widget"),
        ),
        body: GLHomeContent());
  }
}

class GLHomeContent extends StatefulWidget {
  const GLHomeContent({super.key});

  @override
  State<GLHomeContent> createState() => _GLHomeContentState();
}

class _GLHomeContentState extends State<GLHomeContent> {
  @override
  Widget build(BuildContext context) {
    return Column(
        children: [
          Padding(
              padding: EdgeInsets.symmetric(vertical: 15,horizontal:5 ),
              child: Text("Hello",style: TextStyle(fontSize: 30,backgroundColor: Colors.red))
          ),
          Padding(
              padding:  EdgeInsets.only(bottom: 50),
              child: Text("Hello",style: TextStyle(fontSize: 30,backgroundColor: Colors.red)
              )),
          Padding(
              padding: const EdgeInsets.all(8.0),
              child: Text("Hello",style: TextStyle(fontSize: 30,backgroundColor: Colors.red)
              )),
        ]
    );
  }
}
